package com.nullpointer.idlegame;

import com.nullpointer.idlegame.scene.WelcomePage;
import com.nullpointer.idlegame.service.MainService;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class HelloApplication extends Application {

    @Override
    public void start(Stage stage) {
        GlobalContent.setBasicStage(stage);

        MainService mainService = MainService.init();
        GlobalContent.setMainService(mainService);

        WelcomePage welcomePage = new WelcomePage();
        Scene scene = welcomePage.init();
        stage.setScene(scene);

        stage.show();
    }
}